#include <QCoreApplication>
#include <QVariant>
#include <QDebug>
#include "myclass.h"

int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);

    MyClass mClass;
    mClass.description = "Hello World";
    //QVariant v = QVariant::fromValue(mClass);
    QVariant v;
    v.setValue(mClass);

    MyClass vClass = v.value<MyClass>();
    qDebug() << vClass.description;

    return a.exec();
}
